namespace go api

struct ListProductCustomFieldListRowRequest {
    1: i32 pageNum
    2: i32 pageSize
    3: string sort
    4: ProductCustomFieldListRowData data
}

struct ListProductCustomFieldListRowResponse {
	1: list<ProductCustomFieldListRowData> data
	2: i64 count
}

struct ProductCustomFieldListRowData {
	1:i64 id
	2: string createdAt,
    3: string updatedAt,
    4: i64 createdUserId,
    5: i64 updatedUserId,
    6: i64 organizationId,
    7: string updatedUserNickname,
    8: string createdUserNickname,
		9: i64 columnId
	10: string jsonValue

}

struct BatchDeleteProductCustomFieldListRowRequest {
    1: list<i64> ids
}

service ProductCustomFieldListRow {
    ListProductCustomFieldListRowResponse listProductCustomFieldListRow(1: ListProductCustomFieldListRowRequest req)
    ProductCustomFieldListRowData getProductCustomFieldListRow(1: ProductCustomFieldListRowData req)
    void addProductCustomFieldListRow(1: ProductCustomFieldListRowData req)
    void editProductCustomFieldListRow(1: ProductCustomFieldListRowData req)
    void deleteProductCustomFieldListRow(1: i64 id)
    void batchDeleteProductCustomFieldListRow(1: BatchDeleteProductCustomFieldListRowRequest req)
}